package com.legendframework.core.dao.entity;

import com.legendframework.core.dao.DefaultEntityValue;
import com.legendframework.core.dao.annotation.Column;
import com.legendframework.core.dao.annotation.TableId;

import java.io.Serializable;

/**
 * 统一定义id的entity基类
 *
 * @author 196
 *
 * T 实体类类型
 */
public abstract class AbstractEntity<T extends AbstractEntity> implements DefaultEntityValue<T> , Serializable {

    @TableId
    @Column(comments = "无意义主键",sort = 1)
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
